package demo1;

import java.util.UUID;

public class MyGuid {


	private static String g = "abcdef";
	private static Long gt = 0L;
	public static String Guid(){
		long currentTime=System.currentTimeMillis();  
		if (currentTime- gt >60 * 1000) {
			UUID uuid = UUID.randomUUID();  
			g = uuid.toString();
			gt = currentTime;
		}
		return g;
	}
	

}
